<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>CSS的引入 | Introduction</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="gitbook/style.css">
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="./ID及class选择符.html" />
    
    
    <link rel="prev" href="./CSS的www.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="1.2"
        data-chapter-title="CSS的引入"
        data-filepath="CSS的引入.md"
        data-basepath="."
        data-revision="Fri Sep 01 2017 15:57:44 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="./index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="CSS选择符.html">
            
                
                    <a href="./CSS选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        CSS选择符
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="CSS的www.html">
            
                
                    <a href="./CSS的www.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        CSS的www
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="1.2" data-path="CSS的引入.html">
            
                
                    <a href="./CSS的引入.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        CSS的引入
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="ID及class选择符.html">
            
                
                    <a href="./ID及class选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        ID及class选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="关系选择符.html">
            
                
                    <a href="./关系选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        关系选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="群组选择符.html">
            
                
                    <a href="./群组选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        群组选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="伪对象选择符.html">
            
                
                    <a href="./伪对象选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        伪对象选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="伪类选择符.html">
            
                
                    <a href="./伪类选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        伪类选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="属性选择符.html">
            
                
                    <a href="./属性选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.</b>
                        
                        属性选择符
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="CSS样式.html">
            
                
                    <a href="./CSS样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        CSS样式
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="CSS字体，颜色和文本属性.html">
            
                
                    <a href="./CSS字体，颜色和文本属性.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        CSS字体，颜色和文本属性
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="Bootstrap.html">
            
                
                    <a href="./Bootstrap.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        Bootstrap
                    </a>
            
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="./" >Introduction</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="&#x5982;&#x4F55;&#x5F15;&#x5165;css">&#x5982;&#x4F55;&#x5F15;&#x5165;css</h1>
<h2 id="1&#x884C;&#x5185;&#x5F15;&#x5165;">1.&#x884C;&#x5185;&#x5F15;&#x5165;</h2>
<p>&#x76F4;&#x63A5;&#x5728;&#x6807;&#x7B7E;&#x4E2D;&#x52A0;&#x4E0A;&#x2018;style&#x2019;&#x5C5E;&#x6027;&#xFF0C;&#x5E76;&#x5728;&#x91CC;&#x9762;&#x5199;&#x4E0A;&#x5BF9;&#x5E94;&#x7684;css&#x4EE3;&#x7801;</p>
<ul>
<li>&#x4F18;&#x70B9;&#x662F;&#x6BD4;&#x8F83;&#x76F4;&#x89C2;&#xFF0C;</li>
<li>&#x7F3A;&#x70B9;&#x662F;&#x4E0D;&#x80FD;&#x91CD;&#x7528;&#xFF0C;&#x9488;&#x5BF9;&#x5F53;&#x524D;&#x5143;&#x7D20;&#xFF0C;&#x5E76;&#x4E14;&#x4EE3;&#x7801;&#x6DF7;&#x4E71;&#xFF0C;HTML&#x4E2D;&#x5939;&#x6742;css&#x4EE3;&#x7801;<pre><code>&#x5982;&#x4E0B;&#x4F8B;&#x5B50;&#xFF1A;
</code></pre></li>
</ul>
<pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;meta charset=&quot;utf-8&quot; /&gt;
        &lt;title&gt;&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;div style=&quot;font-size: 20px;&quot;&gt;&#x6211;&#x662F;&#x7B2C;&#x4E00;&#x4E2A;div,&#x5B57;&#x4F53;20px&#xFF0C;&#x5929;&#x84DD;&#x8272;&lt;/div&gt;
    &lt;/body&gt;
&lt;/html&gt;
</code></pre><h2 id="2&#x9875;&#x5185;&#x5F15;&#x5165;-&#x9488;&#x5BF9;&#x9875;&#x5185;">2.&#x9875;&#x5185;&#x5F15;&#x5165; &#x9488;&#x5BF9;&#x9875;&#x5185;</h2>
<p>&#x76F4;&#x63A5;&#x5728;&#x9875;&#x5934;&#x63D2;&#x5165;style&#x6807;&#x7B7E;&#xFF0C;&#x5E76;&#x5728;&#x91CC;&#x9762;&#x5199;&#x4E0A;&#x5BF9;&#x5E94;&#x7684;css&#x4EE3;&#x7801;</p>
<ul>
<li>&#x4F18;&#x70B9;&#x63A7;&#x5236;&#x591A;&#x4E2A;&#x9875;&#x9762;</li>
<li>&#x7F3A;&#x70B9;&#x53EA;&#x80FD;&#x63A7;&#x5236;&#x5F53;&#x524D;&#x9875;&#x9762;</li>
</ul>
<pre><code>&#x5982;&#x4E0B;&#x4F8B;&#x5B50;&#xFF1A;
</code></pre><pre><code>        &lt;style&gt;
            div{
                color:skyblue;
            }
        &lt;/style&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;div&gt;
            &#x6211;&#x662F;div,&#x5929;&#x84DD;&#x8272;
        &lt;/div&gt;
    &lt;/body&gt;
</code></pre><h2 id="3-&#x9875;&#x5916;&#x5F15;&#x5165;&#xFF08;&#x9488;&#x5BF9;&#x591A;&#x9875;&#x9762;&#xFF09;">3. &#x9875;&#x5916;&#x5F15;&#x5165;&#xFF08;&#x9488;&#x5BF9;&#x591A;&#x9875;&#x9762;&#xFF09;</h2>
<p>&#x901A;&#x8FC7;link&#x6807;&#x7B7E;&#xFF0C;&#x5F15;&#x5165;&#x5916;&#x90E8;css&#x4EE3;&#x7801;&#xFF0C;&#x8FBE;&#x5230;&#x4E00;&#x4E2A;css&#x6587;&#x4EF6;&#x63A7;&#x5236;&#x591A;&#x4E2A;HTML&#x9875;&#x9762;&#x7684;&#x76EE;&#x7684;</p>
<ul>
<li>&#x4F18;&#x70B9;&#x63A7;&#x5236;&#x591A;&#x4E2A;&#x9875;&#x9762;&#x5C31;&#x4E00;&#x5168;&#x7AD9;&#x6837;&#x5F0F;&#xFF0C;&#x53EF;&#x4EE5;&#x88AB;&#x6D4F;&#x89C8;&#x5668;&#x7F13;&#x5B58;&#xFF0C;&#x52A0;&#x5FEB;&#x52A0;&#x8F7D;&#x901F;&#x5EA6;</li>
<li>&#x7F3A;&#x70B9;&#x56E0;&#x4E3A;&#x6709;&#x7F13;&#x5B58;&#xFF0C;&#x6240;&#x4EE5;&#x6709;&#x53EF;&#x80FD;&#x5B58;&#x5728;&#x66F4;&#x65B0;&#x4E0D;&#x53CA;&#x65F6;</li>
</ul>
<pre><code>&#x5982;&#x4E0B;&#x4F8B;&#x5B50;&#xFF1A;
</code></pre><pre><code>    &lt;head&gt;
        &lt;link rel=&quot;stylesheet&quot; href=&quot;./css/style.css&quot;&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;div&gt;
            &#x6211;&#x662F;&#x7B2C;div,&#x5929;&#x84DD;&#x8272;&lt;/div&gt;
    &lt;/body&gt;
</code></pre><blockquote>
<p>&#x9488;&#x5BF9;&#x4E0A;&#x9762;&#x7684;&#x4E09;&#x79CD;&#x5F15;&#x5165;&#x65B9;&#x5F0F;&#xFF0C;&#x4ED6;&#x4EEC;&#x4E4B;&#x95F4;&#x7684;&#x4F18;&#x5148;&#x7EA7;<strong>&#x201C;&#x5C31;&#x8FD1;&#x539F;&#x5219;&#x201D;</strong>
&#x8C01;&#x66F4;&#x63A5;&#x8FD1;&#x76EE;&#x6807;&#x5143;&#x7D20;&#xFF0C;&#x8C01;&#x5C31;&#x62E5;&#x6709;&#x6700;&#x5927;&#x7684;&#x8BDD;&#x8BED;&#x6743;
&#x6240;&#x4EE5;&#x5F53;&#x6211;&#x4EEC;&#x63A7;&#x5236;&#x540C;&#x4E00;&#x4E2A;&#x6837;&#x5F0F;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x6700;&#x63A5;&#x8FD1;&#x7684;&#x5143;&#x7D20;&#x624D;&#x4F1A;&#x751F;&#x6548;</p>
</blockquote>
<ul>
<li>class&#x9009;&#x62E9;&#x5668;&#x90FD;&#x53EF;&#x4EE5;&#x591A;&#x6B21;&#x4F7F;&#x7528;&#xFF0C;&#x628A;&#x76F8;&#x540C;&#x7684;&#x6837;&#x5F0F;&#x5E94;&#x7528;&#x5728;&#x591A;&#x4E2A;&#x6807;&#x7B7E;&#x8EAB;&#x4E0A;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x5355;&#x6B21;&#x6240;&#x4EE5;&#xFF0C;&#x4E00;&#x4E2A;&#x6807;&#x7B7E;&#x62E5;&#x6709;&#x552F;&#x4E00;&#x4E00;&#x4E2A;class</li>
</ul>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="./CSS的www.html" class="navigation navigation-prev " aria-label="Previous page: CSS的www"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="./ID及class选择符.html" class="navigation navigation-next " aria-label="Next page: ID及class选择符"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="gitbook/app.js"></script>

    
    <script src="gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
